.class Lcom/netease/newsreader/util/SkinSettingAdapter$1;
.super Ljava/lang/Object;
.source "SkinSettingAdapter.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/util/SkinSettingAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/util/SkinSettingAdapter;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/util/SkinSettingAdapter;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/util/SkinSettingAdapter$1;->this$0:Lcom/netease/newsreader/util/SkinSettingAdapter;

    .line 104
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5
    .parameter "v"

    .prologue
    .line 107
    iget-object v3, p0, Lcom/netease/newsreader/util/SkinSettingAdapter$1;->this$0:Lcom/netease/newsreader/util/SkinSettingAdapter;

    invoke-static {v3}, Lcom/netease/newsreader/util/SkinSettingAdapter;->access$0(Lcom/netease/newsreader/util/SkinSettingAdapter;)Z

    move-result v3

    if-eqz v3, :cond_0

    iget-object v3, p0, Lcom/netease/newsreader/util/SkinSettingAdapter$1;->this$0:Lcom/netease/newsreader/util/SkinSettingAdapter;

    iget-object v4, p0, Lcom/netease/newsreader/util/SkinSettingAdapter$1;->this$0:Lcom/netease/newsreader/util/SkinSettingAdapter;

    invoke-static {v4}, Lcom/netease/newsreader/util/SkinSettingAdapter;->access$1(Lcom/netease/newsreader/util/SkinSettingAdapter;)Landroid/widget/ListView;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/netease/newsreader/util/SkinSettingAdapter;->access$2(Lcom/netease/newsreader/util/SkinSettingAdapter;Landroid/widget/ListView;)V

    :cond_0
    move-object v3, p1

    .line 114
    check-cast v3, Landroid/widget/RadioButton;

    invoke-virtual {v3}, Landroid/widget/RadioButton;->isChecked()Z

    move-result v3

    if-eqz v3, :cond_2

    .line 115
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v2

    .line 116
    .local v2, skinId:Ljava/lang/String;
    iget-object v3, p0, Lcom/netease/newsreader/util/SkinSettingAdapter$1;->this$0:Lcom/netease/newsreader/util/SkinSettingAdapter;

    invoke-static {v3}, Lcom/netease/newsreader/util/SkinSettingAdapter;->access$3(Lcom/netease/newsreader/util/SkinSettingAdapter;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_1
    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-nez v4, :cond_3

    .line 120
    iget-object v3, p0, Lcom/netease/newsreader/util/SkinSettingAdapter$1;->this$0:Lcom/netease/newsreader/util/SkinSettingAdapter;

    invoke-static {v3}, Lcom/netease/newsreader/util/SkinSettingAdapter;->access$4(Lcom/netease/newsreader/util/SkinSettingAdapter;)Landroid/content/SharedPreferences;

    move-result-object v3

    invoke-interface {v3}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 121
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    const-string v3, "changeskin"

    invoke-interface {v0, v3, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 122
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 124
    .end local v0           #editor:Landroid/content/SharedPreferences$Editor;
    .end local v2           #skinId:Ljava/lang/String;
    :cond_2
    return-void

    .line 116
    .restart local v2       #skinId:Ljava/lang/String;
    :cond_3
    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/RadioButton;

    .line 117
    .local v1, r:Landroid/widget/RadioButton;
    invoke-virtual {v1}, Landroid/widget/RadioButton;->getTag()Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_1

    .line 118
    const/4 v4, 0x0

    invoke-virtual {v1, v4}, Landroid/widget/RadioButton;->setChecked(Z)V

    goto :goto_0
.end method
